home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Snippets / Development Tools & Languages / MouseInfo 1.0.1 / UMenuedWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-15  |  2.0 KB  |  67 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    UMenuedWindow.h
  3.  *
  4.  *    Copyright 1991 Imagenetics
  5.  *    All rights reserved
  6.  *
  7.  *    19 Aug 91  EMB  Created file
  8.  *    22 Aug 91  EMB  Modified design to be standalone unit
  9.  *    28 Oct 91  LPG  Cleaned up header.
  10.  *
  11.  */
  12.  
  13. #ifndef    __UMENUEDWINDOW__
  14. #define    __UMENUEDWINDOW__
  15.  
  16. #ifndef    __UFLOATWINDOW__
  17. #include <UFloatWindow.h>
  18. #endif
  19.  
  20. //----------------------------------------------------------------------------------------
  21. // Global constant
  22. //----------------------------------------------------------------------------------------
  23.  
  24. const IDType    kMenuedWindowBehavior = 'MUWD';
  25.  
  26. //----------------------------------------------------------------------------------------
  27. // TFloatMenuedWindow
  28. //----------------------------------------------------------------------------------------
  29.  
  30. class TFloatMenuedWindow : public TFloatWindow
  31. {
  32. public:
  33.  
  34.     // Construction/Destruction    
  35.     virtual pascal void    DoPostCreate(TDocument* itsDocument);            //    OVERRIDE
  36.     virtual pascal void    Free();                                            //    OVERRIDE
  37.     virtual pascal void    IFloatMenuedWindow(TDocument* itsDocument,
  38.                                                WindowPtr itsWMgrWindow,
  39.                                                Boolean canResize,
  40.                                                Boolean canClose,
  41.                                                Boolean disposeOnFree);
  42. };
  43.  
  44. //----------------------------------------------------------------------------------------
  45. // TMenuedWindow
  46. //----------------------------------------------------------------------------------------
  47.  
  48. class TMenuedWindow : public TWindow
  49. {
  50. public:
  51.     // Construction/Destruction    
  52.     virtual pascal void    DoPostCreate(TDocument* itsDocument);            //    OVERRIDE
  53.     virtual pascal void    Free();                                            //    OVERRIDE
  54.     virtual pascal void    IMenuedWindow(TDocument* itsDocument,
  55.                                           WindowPtr itsWMgrWindow,
  56.                                           Boolean canResize,
  57.                                           Boolean canClose,
  58.                                           Boolean disposeOnFree);
  59. };
  60.  
  61. //----------------------------------------------------------------------------------------
  62. // Global initialization procedure
  63. //----------------------------------------------------------------------------------------
  64.  
  65. pascal void InitUMenuedWindow(ResNumber menuID);
  66.  
  67. #endif